//
//  YZNetWorkTool.m
//  名医通
//
//  Created by WGP on 16/5/4.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "YZNetWorkTool.h"

@implementation YZNetWorkTool

+(instancetype)sharedNetWorkTool
{
    static YZNetWorkTool *instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[YZNetWorkTool alloc] init];
        
        instance.requestSerializer = [AFJSONRequestSerializer serializer];
        
        instance.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/plain",@"text/html", nil];
        
    });
    return instance;
}

@end
